/**
 * @description :{配置代理}
 */
const { createProxyMiddleware } = require('http-proxy-middleware');

// 测试环境
// module.exports = function (app) {
//     app.use('/front', createProxyMiddleware({
//         target: 'http://192.168.1.18:9002',
//         changeOrigin: true,
//         pathRewrite: {
//             '^/front': '',
//         }
//     }))
// }

// 正式环境
module.exports = function (app) {
    app.use('/thailand/front', createProxyMiddleware({
        target: 'https://www.tokenplusapp.com',
        changeOrigin: true,
        pathRewrite: {
            '^/thailand/front': '',
        }
    }))
}